package com.onlinemovies.repository.extension;


import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.onlinemovies.entity.HallDetails;
import com.onlinemovies.repository.AbstractRepository;

@Repository("hallRepository")
public class HallRepository  extends AbstractRepository<HallDetails> implements Serializable{

	@SuppressWarnings("unchecked")
	public List<HallDetails> getAll() {
	        return entityManager
	        		.createQuery("SELECT h FROM HallDetails h ORDER BY h.hallname")
	        		.getResultList();
	    }
	
}
